package com.eorchis.module.news.domain;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.eorchis.utils.utils.PropertyUtil;

public class NewsQueryBean {

	private String userId;
	private String depName;
	private String roleName;
	private String newsId;// 消息管理ID
	private Integer sendLookState;// 发送人显示状态 1：显示 2：不显示
	private String attachmentId;// 附件ID
	private String newsTitle;// 消息标题
	private String newsValue;// 消息内容
	private String newsType;// 消息类型
	private String sendUserId;// 消息发送人ID
	private String receiveUsers;// 消息接收人ID
	private String sendTime;// 发送时间
	private Integer readNum;// 已读人数
	private Integer receiveNumAll;// 接收消息总人数
	private Integer receiveNum;//接收消息数量
	private String  userName;//发送人ID
	private Integer readState;//读取状态
	private Integer erplyState;//回复状态
	private String  replyValue;//回复内容
	private String attachName;//附件名称
	private String attachType;//附件类型
	private String fileSize;//附件大小
	private String className;//班级名称
	private String newsUserLink;//消息人员表ID
	private String loginId;//
	private String newsCode;//
	private Integer ROWNUM_;//
	private String newsTypeCode;// 消息类型code
	private Integer isNewReply;//是否有新回复
	private String receiveTime;//接收时间
	private String replyTime;//回复时间
	private String replyId;
	

	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");

	public Integer getROWNUM_() {
		return ROWNUM_;
	}

	public void setROWNUM_(Integer rOWNUM_) {
		ROWNUM_ = rOWNUM_;
	}

	public String getNewsCode() {
		return newsCode;
	}

	public void setNewsCode(String newsCode) {
		this.newsCode = newsCode;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(Object loginId) {
		this.loginId = loginId.toString();
	}

	public String getNewsUserLink() {
		return newsUserLink;
	}

	public void setNewsUserLink(String newsUserLink) {
		this.newsUserLink = newsUserLink;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getFileSize() {
		return fileSize;
	}

	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}

	public String getAttachName() {
		return attachName;
	}

	public void setAttachName(String attachName) {
		this.attachName = attachName;
	}

	public String getAttachType() {
		return attachType;
	}

	public void setAttachType(String attachType) {
		this.attachType = attachType;
	}

	public String getReplyValue() {
		return replyValue;
	}

	public void setReplyValue(String replyValue) {
		this.replyValue = replyValue;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(Object userId) {
		this.userId = userId.toString();
	}

	public String getDepName() {
		return depName;
	}

	public void setDepName(String depName) {
		this.depName = depName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getReadState() {
		return readState;
	}

	public void setReadState(Integer readState) {
		this.readState = readState;
	}

	public Integer getErplyState() {
		return erplyState;
	}

	public void setErplyState(Integer erplyState) {
		this.erplyState = erplyState;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getReceiveNum() {
		return receiveNum;
	}

	public void setReceiveNum(BigInteger receiveNum) {
		this.receiveNum = receiveNum.intValue();
	}

	public String getNewsId() {
		return newsId;
	}

	public void setNewsId(String newsId) {
		this.newsId = newsId;
	}

	public Integer getSendLookState() {
		return sendLookState;
	}

	public void setSendLookState(Integer sendLookState) {
		this.sendLookState = sendLookState;
	}

	public String getAttachmentId() {
		return attachmentId;
	}

	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}

	public String getNewsTitle() {
		return newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public String getNewsValue() {
		return newsValue;
	}

	public void setNewsValue(String newsValue) {
		this.newsValue = newsValue;
	}

	public String getNewsType() {
		return newsType;
	}

	public void setNewsType(String newsType) {
		this.newsType = newsType;
	}

	public String getSendUserId() {
		return sendUserId;
	}

	public void setSendUserId(String sendUserId) {
		this.sendUserId = sendUserId;
	}

	public String getReceiveUsers() {
		return receiveUsers;
	}

	public void setReceiveUsers(Object receiveUsers) {
		this.receiveUsers = receiveUsers.toString();
	}

	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = PropertyUtil.objectNotEmpty(sendTime) ? format.format(sendTime) : null;
	}

	public Integer getReadNum() {
		return readNum;
	}

	public void setReadNum(Integer readNum) {
		this.readNum = readNum;
	}

	public String getNewsTypeCode() {
		return newsTypeCode;
	}

	public void setNewsTypeCode(String newsTypeCode) {
		this.newsTypeCode = newsTypeCode;
	}

	public Integer getIsNewReply() {
		return isNewReply;
	}

	public void setIsNewReply(Object isNewReply) {
		this.isNewReply = Integer.valueOf(isNewReply.toString());
	}

	public String getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = PropertyUtil.objectNotEmpty(receiveTime) ? format.format(receiveTime) : null;
	}

	public String getReplyTime() {
		return replyTime;
	}

	public void setReplyTime(Date replyTime) {
		this.replyTime = PropertyUtil.objectNotEmpty(replyTime) ? format.format(replyTime) : null;
	}

	public Integer getReceiveNumAll() {
		return receiveNumAll;
	}

	public void setReceiveNumAll(BigInteger receiveNumAll) {
		this.receiveNumAll = receiveNumAll.intValue();
	}

	public String getReplyId() {
		return replyId;
	}

	public void setReplyId(String replyId) {
		this.replyId = replyId;
	}

}
